import {lazy} from "react"

const routes=[
    {
        path:"/home",
        component:lazy(()=>import("../views/home/Home")),
        children:[
            {
                path:"/home/index",
                component:lazy(()=>import("../views/home/index/Index")),
            },
            {
                path:"/home/class",
                component:lazy(()=>import("../views/home/index/Class")),
            },
            {
                path:"/home/shop",
                component:lazy(()=>import("../views/home/index/Shop")),
            },
            {
                path:"/home/my",
                component:lazy(()=>import("../views/home/index/My")),
            },
            {
                path:"/home",
                to:"/home/index"
            },
        ]
    },
    {
        path:"*",
        component:lazy(()=>import("../views/Eorry404/Eorry404"))
    },
    {
        path:"/login",
        component:lazy(()=>import("../views/login/Login"))
    },
    {
        path:"/datelist/:id",
        component:lazy(()=>import("../views/datelist/Datelist"))
    },
    {
        path:"/",
        to:"/home"
    }
]

export default routes